package com.tms.domain;

import java.util.Date;

/**
 * 模具实体类
 *
 * @author sxy
 */
public class Tool {

    private int id;
    private String code;
    private double rate;
    private int seqId;
    private Date regDate;
    private int usedCount;
    private String billNo;
    private String image;
    private Location location;
    private TDef tDef;
    private Status status;

    public Tool() {
    }

    public Tool(String code, double rate, int seqId, Date regDate, int usedCount, String billNo, String image, Location location, TDef tDef, Status status) {
        this.code = code;
        this.rate = rate;
        this.seqId = seqId;
        this.regDate = regDate;
        this.usedCount = usedCount;
        this.billNo = billNo;
        this.image = image;
        this.location = location;
        this.tDef = tDef;
        this.status = status;
    }

    public Tool(int id, String code, double rate, int seqId, Date regDate, int usedCount, String billNo, String image, Location location, TDef tDef, Status status) {
        this.id = id;
        this.code = code;
        this.rate = rate;
        this.seqId = seqId;
        this.regDate = regDate;
        this.usedCount = usedCount;
        this.billNo = billNo;
        this.image = image;
        this.location = location;
        this.tDef = tDef;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public TDef gettDef() {
        return tDef;
    }

    public void settDef(TDef tDef) {
        this.tDef = tDef;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public int getSeqId() {
        return seqId;
    }

    public void setSeqId(int seqId) {
        this.seqId = seqId;
    }

    public Date getRegDate() {
        return regDate;
    }

    public void setRegDate(Date regDate) {
        this.regDate = regDate;
    }

    public int getUsedCount() {
        return usedCount;
    }

    public void setUsedCount(int usedCount) {
        this.usedCount = usedCount;
    }

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public TDef getTDef() {
        return tDef;
    }

    public void setTDef(TDef tDef) {
        this.tDef = tDef;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}